From f9d16f39235376c176621ccaef00685118f2fc95 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Tue, 8 Nov 2011 12:36:55 -0500 Subject: [PATCH] themingengine: set the cairo extend to PAD when we're stretching bg This avoids artifacts around the borders due to bilinear filtering cairo applies to the surface pattern when stretching it. https://bugzilla.gnome.org/show_bug.cgi?id=663522 --- gtk/gtkthemingengine.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c index 8d6da01018..f068c3d38d 100644 --- a/gtk/gtkthemingengine.c +++ b/gtk/gtkthemingengine.c @@ -1622,6 +1622,7 @@ render_background_internal (GtkThemingEngine *engine, } else { + cairo_pattern_set_extend (pattern, CAIRO_EXTEND_PAD); scale_width = width; scale_height = height; } -- 2.30.2